package com.qf.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LeeRui
 * 2021/1/17 下午 1:49
 **/
@RestController
@RequestMapping("/producer")
public class ProducerController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/test")
    public String test() {
        return "Hello,SpringCloud!=======" + port;
    }

}
